//
//  MQSocietyHeaderView.m
//  MQ
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 徐永祥. All rights reserved.
//

#import "MQSocietyHeaderView.h"

@implementation MQSocietyHeaderView

-(instancetype)initWithFrame:(CGRect)frame
{

    self = [super initWithFrame:frame];
    if (self) {
        _pictureView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, screen_width, 200)];
        _pictureView.backgroundColor = [UIColor blackColor];
        _pictureView.userInteractionEnabled = YES;
        [self addSubview:_pictureView];
        
               
        _backGroundView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 200, screen_width, 30)];
        _backGroundView.image = [UIImage imageNamed:@"bg_share_large"];
        _backGroundView.userInteractionEnabled = YES;
        [self addSubview:_backGroundView];
        
        
        _reButton = [UIButton buttonWithType:(UIButtonTypeSystem)];
        _reButton.frame = CGRectMake(0, 5, screen_width/3, 20) ;
        [_reButton setTitle:@"相关" forState:(UIControlStateNormal)];
        [_reButton setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        [_backGroundView addSubview:_reButton];
        
        _hotButton = [UIButton buttonWithType:(UIButtonTypeSystem)];
        _hotButton.frame =CGRectMake(screen_width/3, 5, screen_width/3, 20) ;
        [_hotButton setTitle:@"热点" forState:(UIControlStateNormal)];
        [_hotButton setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        [_backGroundView addSubview:_hotButton];
        
        
        _rankButton =[UIButton buttonWithType:(UIButtonTypeSystem)];
        [_rankButton setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        _rankButton.frame =CGRectMake(screen_width/3*2, 5, screen_width/3, 20) ;
        [_rankButton setTitle:@"排行" forState:(UIControlStateNormal)];
        [_backGroundView addSubview:_rankButton];
        
    }
    return self;
    
}

@end
